﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiTap.Data.Attributes
{
    [AttributeUsage(AttributeTargets.Class)]
    public class PrimaryKeyAttribute : Attribute
    {
        public string Name { get; private set; }
        
        public bool AutoIncrement { get; set; }
        public PrimaryKeyAttribute(string primaryKey) {
            Name = primaryKey;
            AutoIncrement = true;
        }
    }
}
